<!-- 我的基础 -->

<template>
  <div>
    <MajorTitle title="基本信息" />

    <ShowText label="档案名称" bind="name" />

    <EasyRow col3>
      <ShowText label="关联事件" bind="id" isBtn @click="windowDetail" />
      <ShowDict label="事件等级" bind="eventLevelCode" :dict="DICT.LEVEL" />
      <ShowDict label="事件类型" bind="eventTypeId, eventTypeName" :dict="CORE.DICT.preplan_type" />
    </EasyRow>

    <EasyRow col3>
      <ShowTime label="产生时间" bind="generateTime" />
      <ShowTime label="处置时间" bind="handleTime" />
      <ShowTime label="完成时间" bind="finishTime" />
    </EasyRow>

    <EasyRow col3>
      <ShowTree :label="`所在${CORE.MAP.REGION}`" bind="areaId, areaName" :dict="CORE.REGION.DICT" allName third2 />
      <ShowText label="全程用时" bind="duringText" />
    </EasyRow>

    <ShowTextMulti label="事件详情" bind="detail" />

    <ShowFile label="关联文件" v-if="!CORE.isEmpty(one.fileInfoDtos)" bind="fileInfoDtos" />
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import mixDetailToTable from '@admin/components/detail/mixDetailToTable'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyBase',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [mixDetailToTable('', 'DetailEmergencyEvent')],
}
</script>
